package com.dingup.paike.feign.client.log;


import com.dingup.api.bean.feign.log.LogSaveFeignBean;
import com.dingup.api.bean.feign.log.LogSearchFeignBean;
import com.dingup.api.model.sys.SysLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by wancheng on 2018/7/5.
 */
@Component
@FeignClient(value = "p-innermgrweb") //这里的name对应调用服务的spring.applicatoin.name
public interface LogFeignClient {

    @RequestMapping(value = "/feign/log/save_log.do", method = RequestMethod.POST)
    public void saveLog(@RequestBody LogSaveFeignBean bean);

    @RequestMapping(value = "/feign/log/get_log.do", method = RequestMethod.POST)
    public List<SysLog> getLog(@RequestBody LogSearchFeignBean logSearchFeignBean);
}
